package com.jsy.common.util.publicApi.mybatis;


import java.util.List;

public interface ApiKeyService {

    /**
     * 创建API Key
     */
    ApiKey createApiKey(ApiKey apiKey);

    /**
     * 删除API Key
     */
    void deleteApiKey(Long id);

    /**
     * 更新API Key
     */
    void updateApiKey(ApiKey apiKey);

    /**
     * 根据ID获取API Key
     */
    ApiKey getApiKey(Long id);

    /**
     * 根据Access Key获取API Key
     */
    ApiKey getApiKeyByAccessKey(String accessKey);

    /**
     * 获取所有API Keys
     */
    List<ApiKey> getAllApiKeys();

    /**
     * 根据状态获取API Keys
     */
    List<ApiKey> getApiKeysByStatus(Integer status);
}